/**
 * 树形表格 2.x
 * date:2019-11-08   License By https://easyweb.vip
 */
.ew-tree-table {
    margin: 10px 0;
    position: relative
}

.ew-tree-table .layui-table {
    margin: 0
}

.ew-tree-table .ew-tree-table-border {
    position: absolute;
    background-color: #e6e6e6
}

.ew-tree-table .ew-tree-table-border.top {
    left: 0;
    right: 0;
    top: 0;
    height: 1px
}

.ew-tree-table .ew-tree-table-border.left {
    top: 0;
    left: 0;
    bottom: 0;
    width: 1px
}

.ew-tree-table .ew-tree-table-border.right {
    top: 0;
    right: 0;
    bottom: 0;
    width: .52px
}

.ew-tree-table .ew-tree-table-border.bottom {
    left: 0;
    right: 0;
    bottom: 0;
    height: .52px
}

.ew-tree-table-group {
    overflow: auto;
    position: relative
}

.ew-tree-table > .ew-tree-table-group > .ew-tree-table-box {
    overflow: auto;
    position: relative;
    box-sizing: border-box
}

.ew-tree-table > .ew-tree-table-group > .ew-tree-table-head {
    position: relative;
    box-sizing: border-box;
    background-color: #f2f2f2
}

.ew-tree-table > .ew-tree-table-group > .ew-tree-table-box > .layui-table, .ew-tree-table > .ew-tree-table-group > .ew-tree-table-head > .layui-table {
    table-layout: fixed
}

.ew-tree-table > .ew-tree-table-group > .ew-tree-table-box > .ew-tree-table-loading {
    padding: 10px 0;
    text-align: center
}

.ew-tree-table > .ew-tree-table-group > .ew-tree-table-box > .ew-tree-table-loading > i {
    color: #999;
    font-size: 30px
}

.ew-tree-table > .ew-tree-table-group > .ew-tree-table-box > .ew-tree-table-loading.ew-loading-float {
    position: absolute;
    left: 0;
    right: 0;
    top: 0
}

.ew-tree-table > .ew-tree-table-group > .ew-tree-table-box > .ew-tree-table-empty {
    color: #666;
    font-size: 14px;
    text-align: center
}

.ew-tree-table .ew-tree-table-arrow {
    margin-right: 5px;
    vertical-align: middle
}

.ew-tree-table .ew-tree-table-arrow:before {
    content: "\e623"
}

.ew-tree-table .ew-tree-table-open .ew-tree-table-arrow:before {
    content: "\e625"
}

.ew-tree-table .ew-tree-table-arrow.arrow2 {
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
    height: 16px;
    width: 16px;
    display: inline-block;
    text-align: center;
    color: #888
}

.ew-tree-table .ew-tree-table-arrow.arrow2:before {
    content: "\e602"
}

.ew-tree-table .ew-tree-table-open .ew-tree-table-arrow.arrow2:before {
    content: "\e61a"
}

.ew-tree-table-arrow.ew-tree-table-arrow-hide {
    visibility: hidden
}

.ew-tree-table .ew-tree-table-loading > td > .ew-tree-pack > .ew-tree-table-arrow:before {
    content: "\e63d" !important
}

.ew-tree-table .ew-tree-table-loading > td > .ew-tree-pack > .ew-tree-table-arrow {
    margin-right: 0
}

.ew-tree-table .ew-tree-table-loading > td > .ew-tree-pack > .ew-tree-table-arrow + * {
    margin-left: 5px
}

.ew-tree-table tr.ew-tree-table-loading > * {
    pointer-events: none !important
}

.ew-tree-table .ew-tree-pack {
    cursor: pointer;
    line-height: 16px;
    display: inline-block;
    vertical-align: middle
}

.ew-tree-table .ew-tree-pack > span {
    height: 16px;
    line-height: 16px;
    display: inline-block;
    vertical-align: middle
}

.ew-tree-table .ew-tree-tb-hide {
    display: none
}

.ew-tree-table .ew-tree-table-indent {
    margin-right: 5px;
    padding-left: 16px
}

.ew-tree-table .ew-tree-icon {
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle
}

.ew-tree-table .ew-tree-icon-folder, .ew-tree-table .ew-tree-icon-file {
    width: 22px;
    height: 16px;
    line-height: 16px;
    position: relative
}

.ew-tree-table .ew-tree-icon-folder:after, .ew-tree-table .ew-tree-icon-file:after {
    content: "";
    width: 22px;
    height: 22px;
    position: absolute;
    left: 0;
    top: -3px;
    background-size: cover;
    background-image: url("")
}

.ew-tree-table tr.ew-tree-table-open > td > .ew-tree-pack .ew-tree-icon-folder:after {
    background-image: url("")
}

.ew-tree-table .ew-tree-icon-file:after {
    background-image: url("")
}

.ew-tree-table .layui-form-switch {
    margin-top: 0
}

.ew-tree-table .layui-form-radio {
    margin: 0
}

.ew-tree-table-checkbox + .layui-form-checkbox {
    padding: 0
}

.ew-tree-table-checkbox + .layui-form-checkbox > .layui-icon {
    color: transparent;
    transition: background-color .1s linear
}

.ew-tree-table-checkbox + .layui-form-checkbox.layui-form-checked > .layui-icon {
    color: #fff
}

.ew-tree-table-radio + .layui-form-radio {
    padding: 0;
    height: 20px;
    line-height: 20px
}

.ew-tree-table-radio + .layui-form-radio > i {
    margin: 0;
    height: 20px;
    font-size: 20px;
    line-height: 20px
}

.ew-tree-table .layui-form-checked.ew-form-indeterminate > .layui-icon:before {
    content: "";
    width: 9px;
    height: 2px;
    display: inline-block;
    background-color: #eee;
    vertical-align: middle
}

.ew-tree-table .layui-form-checked.ew-form-indeterminate > .layui-icon {
    line-height: 14px
}

.ew-tree-table .layui-table td[data-edit] {
    cursor: text
}

.ew-tree-table .ew-tree-table-edit {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: 1px 1px 20px rgba(0, 0, 0, .15)
}

.ew-tree-table .ew-tree-table-edit:focus {
    border-color: #5fb878 !important
}

.ew-tree-table .ew-tree-table-edit.layui-form-danger {
    border-color: #ff5722 !important
}

.ew-tree-table td[data-type="numbers"] {
    padding-left: 0;
    padding-right: 0;
    text-align: center
}

.ew-tree-table tr.ew-tree-table-filter-hide {
    display: none !important
}